https://bugzilla.gnome.org/show_bug.cgi?id=789198
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
return FALSE;
}
+/**
+ * gdk_event_get_owner_change_reason:
+ * @event: a #GdkEvent
+ * @reason: (out):
+ *
+ * Returns: %TRUE on success, otherwise %FALSE
+ **/
+gboolean
+gdk_event_get_owner_change_reason (const GdkEvent *event,
+ GdkOwnerChange *reason)
+{
+ if (!event)
+ return FALSE;
+
+ if (event->type == GDK_OWNER_CHANGE)
+ {
+ *reason = event->owner_change.reason;
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
/**
* gdk_event_get_selection_property:
* @event: a #GdkEvent
GDK_AVAILABLE_IN_3_92
gboolean gdk_event_get_selection (const GdkEvent *event,
GdkAtom *selection);
+GDK_AVAILABLE_IN_3_94
+gboolean gdk_event_get_owner_change_reason (const GdkEvent *event,
+ GdkOwnerChange *reason);
GDK_AVAILABLE_IN_3_92
gboolean gdk_event_get_selection_property (const GdkEvent *event,
GdkAtom *property,